package com.joysuch.wwyt.attendance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.attendance.entity.AttendanceGroup;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zqw
 * @since 2022-03-01
 */
public interface AttendanceGroupMapper extends BaseMapper<AttendanceGroup> {

    int findByNameAndIdNotEq(String name, Long id, String orgCode, Long tenentId);

    int findByName(String name, String orgCode, Long tenentId);

    List<AttendanceGroup> getAllGroups(Long groupId, String orgCode, Long tenentId);

    List<AttendanceGroup> getGroupByAttendanceFlag(Integer attendanceFlag,String orgCode, Long tenentId);

    List<AttendanceGroup> findByUniqueId(String uniqueId, String orgCode, Long tenentId);
}
